<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Code Editor Test</title></head>
<body>
<h1>Crunchy Frog Editor Test</h1>
<p>Here's an Editor box, try running the code supplied (tests if the point x,y 
lies in the mandelbrot set):</p>
<pre title="editor">
def mandel(x, y, maxiter = 20):
    c = complex(x, y)
    z = complex(0, 0)
    for k in range(maxiter):
        z = z*z + c
    if abs(z) &lt; 2.0:
        return True
    else:
        return False

print mandel(-0.2, 0.1)
print mandel(1.0, 1.0)
</pre>
<p><a href="index.html">Back to the test index</a></p>
</body>
</html>